package com.authine.cloudpivot.web.api.service.impl;

import com.authine.cloudpivot.web.api.dao.PortalMapper;
import com.authine.cloudpivot.web.api.dao.ReportMapper;
import com.authine.cloudpivot.web.api.service.PortalService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Slf4j
@Service
public class PortalServiceImpl implements PortalService {

    @Autowired
    private PortalMapper portalMapper;

    @Override
    public List<Map<String, String>> getPortalPower(List<String> roleIds) {
        return portalMapper.getPortalPower(roleIds);
    }

    @Override
    public Map<String, String> getParentId(String code) {
        return portalMapper.getParentId(code);
    }

    @Override
    public String getWorkflowName(String code) {
        return portalMapper.getWorkflowName(code);
    }

    @Override
    public List<String> getWorkFlowPower(List<String> roleIds) {
        return portalMapper.getWorkFlowPower(roleIds);
    }
}



